#!/bin/bash
#查看集群进程

	for i in hadoop101 hadoop102 hadoop103 hadoop104 hadoop105; do
		#statements
		echo ==================$i===================
		ssh $i "jps $@ |grep -v Jps "
	done
